<template>
  <view>detail</view>
</template>

<script setup lang="ts">
import http from "@/utils/http";
import Taro from "@tarojs/taro";
import { onMounted } from "vue";
const params = Taro.getCurrentInstance().router?.params;
console.log("params", params);

onMounted(() => {
  const type = params?.id;
  http
    .postQuery("/api/merchant/getOrderDetail", { orderId: type })
    .then((res) => {
      console.log("res 订单详情", res);
    });
});
</script>
